<?php
	#debug($user);
	$iconpath = Configure::read('Path.Icon').$user['Icon']['name'].'.'.$user['Icon']['ext'];
?>
<div id="maincontent">

<?php echo $form->create('Search', array('url' => '/search', 'type' => 'get'));?>
<fieldset>
<legend>検索</legend>
<p>
<?php echo $form->label('word', '検索語句');?> (検索オプション)

<?php echo $form->input('word', array(
	'type' => 'text',
	'label' => false,
));?>
</p>
</fieldset>
<p>
<?php echo $form->end(array('label' => '検索する'));?>
</p>
<?php
if($results !== false && empty($results)){
?>
<p>
検索結果無し
</p>
<?php
}elseif($results !== false){
?>
	<?php
	foreach($results as $result){
	?>
	<p>
	<?php echo $html->link($result['User']['nickname'].'さん', '/members/view/'.$result['User']['id']);?>
	</p>
	<?php
	}
	?>
<?php
}
?>

<?php
if($error){
?>
<p>
エラー
<?php echo $html->nestedList($errorMsg);?>
</p>
<?php
}
?>
</div> <!-- end maincontent -->

<div id="sidecontent">

<p>
<?php p($user['User']['nickname']);?> さん
</p>

<?php echo $html->image($iconpath);?>

<div id="nullblock"></div>

</div> <!-- end sidecontent -->